<!DOCTYPE html>
<html>

  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<meta http-equiv="Cache-Control" content="no-siteapp" />

    <title>LTUI v2.4 released, A cross-platform terminal ui library based on Lua</title>
    <meta name="description" content="LTUI is a lua-based cross-platform character terminal UI interface library.This framework is derived from the requirement of graphical menu configuration in ...">

    
    <meta name="keywords" content="ltui,curses,lua,xmake,ui,tboox" /> 

    <!-- qq oauth -->
    <meta property="qc:admins" content="5211601217706727767255" />

    <!--icon -->
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
    <link rel="icon" sizes="192x192" href="/static/img/nice-highres.png" />
	<link rel="apple-touch-icon-precomposed" href="/static/img/apple-touch-icon-57x57-precomposed.png" />
	<link rel="apple-touch-icon-precomposed" sizes="72x72" href="/static/img/apple-touch-icon-72x72-precomposed.png" />
	<link rel="apple-touch-icon-precomposed" sizes="114x114" href="/static/img/apple-touch-icon-114x114-precomposed.png" />
	<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/static/img/apple-touch-icon-144x144-precomposed.png" />
	<link rel="apple-touch-icon-precomposed" sizes="180x180" href="/static/img/retinahd_icon.png" />
	<meta name="msapplication-TileImage" content="/static/img/retinahd_icon.png" />
	
    <link rel="stylesheet" href=" /css/fontawesome/css/font-awesome.min.css ">
    <link rel="stylesheet" href=" /css/main.css ">
    <link rel="canonical" href="https://tboox.org/2020/11/30/ltui-v2.4/">
    <link rel="alternate" type="application/rss+xml" title="TBOOX Open Source Project" href="https://tboox.org/feed.xml ">
    <link rel="alternate" hreflang="en" href="https://tboox.org/" />
    <link rel="alternate" hreflang="zh-Hans" href="https://tboox.org/cn/" />




    <script type="text/javascript">
    function isPC(){    
        var userAgentInfo = navigator.userAgent;  
        var Agents = new Array("Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod");    
        var flag = true;    
        for (var v = 0; v < Agents.length; v++) {    
            if (userAgentInfo.indexOf(Agents[v]) > 0) { flag = false; break; }    
        }    
        return flag;    
    }
    </script>

<!-- baidu ads -->



    <!-- baidu ads -->

</head>


  <body>

    <header id="top">
    <div class="wrapper">
        <a href="/" class="brand">TBOOX</a>
        <button id="headerMenu" class="menu"><i class="fa fa-bars"></i></button>
        <nav id="headerNav">
            <ul>
                <li>
                    
                    <a href="/cn?lang=0">
                    
                        <i class="fa fa-home"></i>中文
                    </a>
                </li>

                
                    
                     
                    
                
                    
                     
                     
                    <li>

                        
                            
                            <a href="/project/">
                            
                        
                            <i class="fa fa-bookmark"></i>Projects
                        </a>
                    </li>
                    
                    
                    
                
                    
                     
                    
                
                    
                     
                     
                    <li>

                        
                            
                            <a href="/archive/">
                            
                        
                            <i class="fa fa-archive"></i>Archives
                        </a>
                    </li>
                    
                    
                    
                
                    
                     
                    
                
                    
                     
                     
                    <li>

                        
                            
                            <a href="/category/">
                            
                        
                            <i class="fa fa-th-list"></i>Categories
                        </a>
                    </li>
                    
                    
                    
                
                    
                     
                    
                
                    
                     
                     
                    <li>

                        
                            
                            <a href="/tag/">
                            
                        
                            <i class="fa fa-tags"></i>Tags
                        </a>
                    </li>
                    
                    
                    
                
                    
                
                    
                     
                    
                
                    
                     
                     
                    <li>

                        
                            
                            <a href="/docs/">
                            
                        
                            <i class="fa fa-book"></i>Documents
                        </a>
                    </li>
                    
                    
                    
                
                    
                     
                    
                
                    
                     
                     
                    <li>

                        
                            
                            <a href="https://xmake.io/#/about/contact" target="_blank" >
                            
                        
                            <i class="fa fa-forumbee"></i>Community
                        </a>
                    </li>
                    
                    
                    
                
                    
                     
                    
                
                    
                     
                     
                    <li>

                        
                            
                            <a href="/donation/">
                            
                        
                            <i class="fa fa-heart"></i>Donate
                        </a>
                    </li>
                    
                    
                    
                
                    
                     
                    
                
                    
                     
                     
                    <li>

                        
                            
                            <a href="/about/">
                            
                        
                            <i class="fa fa-user"></i>About
                        </a>
                    </li>
                    
                    
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                     
                     
                    
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            </ul>
        </nav>
    </div>
</header>



        <div class="page clearfix" post>
    <div class="left">
        <h1>LTUI v2.4 released, A cross-platform terminal ui library based on Lua</h1>
        <div class="label">

            <div class="label-card">
                <i class="fa fa-calendar"></i>2020-11-30
            </div>

            <div class="label-card">
                
            </div>

            <div class="label-card">
                
            </div>

            <div class="label-card">
            


<!-- <span class="point">•</span> -->
<span class="categories">
  <i class="fa fa-th-list"></i>
  
    
        <a href="/category/#ltui" title="Category: ltui" rel="category">ltui</a>
    
  

  <!-- <span class="point">•</span> -->
</span>


            </div>

            <div class="label-card">
            
<!-- <span class="point">•</span> -->
<span class="pageTag">
  <i class="fa fa-tags"></i>
  
    
        <!--a href="/tag/#ltui" title="Tag: ltui" rel="tag">ltui</a-->
        <a href="/tag/#ltui" title="Tag: ltui" rel="tag">ltui</a>&nbsp;
    
        <!--a href="/tag/#curses" title="Tag: curses" rel="tag">curses</a-->
        <a href="/tag/#curses" title="Tag: curses" rel="tag">curses</a>&nbsp;
    
        <!--a href="/tag/#lua" title="Tag: lua" rel="tag">lua</a-->
        <a href="/tag/#lua" title="Tag: lua" rel="tag">lua</a>&nbsp;
    
        <!--a href="/tag/#xmake" title="Tag: xmake" rel="tag">xmake</a-->
        <a href="/tag/#xmake" title="Tag: xmake" rel="tag">xmake</a>&nbsp;
    
        <!--a href="/tag/#ui" title="Tag: ui" rel="tag">ui</a-->
        <a href="/tag/#ui" title="Tag: ui" rel="tag">ui</a>
    
  

</span>

            </div>

        </div>
        <hr>
        <article itemscope itemtype="http://schema.org/BlogPosting">
        <p>LTUI is a lua-based cross-platform character terminal UI interface library.</p>

<p>This framework is derived from the requirement of graphical menu configuration in <a href="https://github.com/xmake-io/xmake">xmake</a>, similar to the menuconf of linux kernel to configure compilation parameters, so based on curses and lua, a complete set of cross- The character terminal ui library of the platform.
And the style style basically refers to kconfig-frontends, of course, users can also customize different ui styles.</p>

<p>In addition, LTUI is completely cross-platform, and the terminal terminal on windows is also fully supported. On windows, ltui will use pdcurses to draw windows.</p>

<ul>
  <li><a href="https://github.com/tboox/ltui">Github</a></li>
</ul>

<h3 id="changelog">Changelog</h3>

<p>In the new version, we have improved the mouse support and realized click response to mouse events of all controls. Here we are very grateful for the contribution of <a href="https://github.com/laelnasan">@laelnasan</a>.</p>

<p>In addition, we have added a scrollbar component for scrolling support, and we have also added scrolling support to choicebox and menuconf components.</p>

<h4 id="choicebox-scrolling-support">choicebox scrolling support</h4>

<p><img src="https://tboox.org/static/img/ltui/choicebox_scrollbar.png" width="70%" /></p>

<h4 id="menuconf-scrolling-support">menuconf scrolling support</h4>

<p><img src="https://tboox.org/static/img/ltui/menuconf_scrollbar.png" width="70%" /></p>

<h3 id="installation-and-usage">Installation and usage</h3>

<p><code class="highlighter-rouge">`console
$ luarocks install ltui
</code> `</p>

<p>If you want to run the built-in test, you need to install <a href="https://www.lua.org/">lua</a> or <a href="http://luajit.org/">luajit</a> program to load and run the ltui source repository test program:</p>

<div class="language-console highlighter-rouge"><pre class="highlight"><code><span class="w">$ </span><span class="nc">lua</span><span class="kv"> tests/dialog.lua
</span><span class="w">$ </span><span class="nc">lua</span><span class="kv"> tests/window.lua
</span><span class="w">$ </span><span class="nc">lua</span><span class="kv"> tests/desktop.lua
</span><span class="w">$ </span><span class="nc">lua</span><span class="kv"> tests/inputdialog.lua
</span><span class="w">$ </span><span class="nc">lua</span><span class="kv"> tests/mconfdialog.lua
</span></code></pre>
</div>

<p>Or</p>

<div class="language-console highlighter-rouge"><pre class="highlight"><code><span class="w">$ </span><span class="nc">luajit</span><span class="kv"> tests/dialog.lua
</span><span class="w">$ </span><span class="nc">luajit</span><span class="kv"> tests/window.lua
</span><span class="w">$ </span><span class="nc">luajit</span><span class="kv"> tests/desktop.lua
</span><span class="w">$ </span><span class="nc">luajit</span><span class="kv"> tests/inputdialog.lua
</span><span class="w">$ </span><span class="nc">luajit</span><span class="kv"> tests/mconfdialog.lua
</span></code></pre>
</div>

<h3 id="source-compilation">Source compilation</h3>

<p>Usually as long as luarocks is installed, it can be used. If you want to debug locally, you can also run the test directly after the source code is compiled. First, we need to install the cross-platform build tool: <a href="https://github.com/xmake-io/xmake">xmake</a></p>

<div class="language-console highlighter-rouge"><pre class="highlight"><code><span class="w">$ </span><span class="nc">xmake</span><span class="kv">
</span></code></pre>
</div>

<p>xmake will automatically download lua, ncurses and other related dependencies, then we can directly load related test programs through <code class="highlighter-rouge">xmake run</code>:</p>

<div class="language-console highlighter-rouge"><pre class="highlight"><code><span class="w">$ </span><span class="nc">xmake</span><span class="kv"> run test dialog
</span><span class="w">$ </span><span class="nc">xmake</span><span class="kv"> run test window
</span><span class="w">$ </span><span class="nc">xmake</span><span class="kv"> run test desktop
</span><span class="w">$ </span><span class="nc">xmake</span><span class="kv"> run test inputdialog
</span><span class="w">$ </span><span class="nc">xmake</span><span class="kv"> run test mconfdialog
</span></code></pre>
</div>

<h3 id="application">Application</h3>

<div class="language-lua highlighter-rouge"><pre class="highlight"><code><span class="kd">local</span> <span class="n">ltui</span>        <span class="o">=</span> <span class="nb">require</span><span class="p">(</span><span class="s2">"ltui"</span><span class="p">)</span>
<span class="kd">local</span> <span class="n">application</span> <span class="o">=</span> <span class="n">ltui</span><span class="p">.</span><span class="n">application</span>
<span class="kd">local</span> <span class="n">event</span>       <span class="o">=</span> <span class="n">ltui</span><span class="p">.</span><span class="n">event</span>
<span class="kd">local</span> <span class="n">rect</span>        <span class="o">=</span> <span class="n">ltui</span><span class="p">.</span><span class="n">rect</span>
<span class="kd">local</span> <span class="n">window</span>      <span class="o">=</span> <span class="n">ltui</span><span class="p">.</span><span class="n">window</span>
<span class="kd">local</span> <span class="n">demo</span>        <span class="o">=</span> <span class="n">application</span><span class="p">()</span>

<span class="k">function</span> <span class="nf">demo</span><span class="p">:</span><span class="n">init</span><span class="p">()</span>
    <span class="n">application</span><span class="p">.</span><span class="n">init</span><span class="p">(</span><span class="n">self</span><span class="p">,</span> <span class="s2">"demo"</span><span class="p">)</span>
    <span class="n">self</span><span class="p">:</span><span class="n">background_set</span><span class="p">(</span><span class="s2">"blue"</span><span class="p">)</span>
    <span class="n">self</span><span class="p">:</span><span class="n">insert</span><span class="p">(</span><span class="n">window</span><span class="p">:</span><span class="n">new</span><span class="p">(</span><span class="s2">"window.main"</span><span class="p">,</span> <span class="n">rect</span> <span class="p">{</span><span class="mi">1</span><span class="p">,</span> <span class="mi">1</span><span class="p">,</span> <span class="n">self</span><span class="p">:</span><span class="n">width</span><span class="p">()</span> <span class="o">-</span> <span class="mi">1</span><span class="p">,</span> <span class="n">self</span><span class="p">:</span><span class="n">height</span><span class="p">()</span> <span class="o">-</span> <span class="mi">1</span><span class="p">},</span> <span class="s2">"main window"</span><span class="p">,</span> <span class="kc">true</span><span class="p">))</span>
<span class="k">end</span>

<span class="n">demo</span><span class="p">:</span><span class="n">run</span><span class="p">()</span>
</code></pre>
</div>

<h3 id="label">Label</h3>

<div class="language-lua highlighter-rouge"><pre class="highlight"><code><span class="kd">local</span> <span class="n">lab</span> <span class="o">=</span> <span class="n">label</span><span class="p">:</span><span class="n">new</span><span class="p">(</span><span class="s2">"title"</span><span class="p">,</span> <span class="n">rect</span> <span class="p">{</span><span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">12</span><span class="p">,</span> <span class="mi">1</span><span class="p">},</span> <span class="s2">"hello ltui!"</span><span class="p">):</span><span class="n">textattr_set</span><span class="p">(</span><span class="s2">"white"</span><span class="p">)</span>
</code></pre>
</div>

<h3 id="button">Button</h3>

<div class="language-lua highlighter-rouge"><pre class="highlight"><code><span class="kd">local</span> <span class="n">btn</span> <span class="o">=</span> <span class="n">button</span><span class="p">:</span><span class="n">new</span><span class="p">(</span><span class="s2">"yes"</span><span class="p">,</span> <span class="n">rect</span> <span class="p">{</span><span class="mi">0</span><span class="p">,</span> <span class="mi">1</span><span class="p">,</span> <span class="mi">7</span><span class="p">,</span> <span class="mi">2</span><span class="p">},</span> <span class="s2">"&lt; Yes &gt;"</span><span class="p">):</span><span class="n">textattr_set</span><span class="p">(</span><span class="s2">"white"</span><span class="p">)</span>
</code></pre>
</div>

<h3 id="input">Input</h3>

<div class="language-lua highlighter-rouge"><pre class="highlight"><code><span class="k">function</span> <span class="nf">demo</span><span class="p">:</span><span class="n">init</span><span class="p">()</span>
    <span class="c1">-- ...</span>

    <span class="kd">local</span> <span class="n">dialog_input</span> <span class="o">=</span> <span class="n">inputdialog</span><span class="p">:</span><span class="n">new</span><span class="p">(</span><span class="s2">"dialog.input"</span><span class="p">,</span> <span class="n">rect</span> <span class="p">{</span><span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">50</span><span class="p">,</span> <span class="mi">8</span><span class="p">})</span>
    <span class="n">dialog_input</span><span class="p">:</span><span class="n">text</span><span class="p">():</span><span class="n">text_set</span><span class="p">(</span><span class="s2">"please input text:"</span><span class="p">)</span>
    <span class="n">dialog_input</span><span class="p">:</span><span class="n">button_add</span><span class="p">(</span><span class="s2">"no"</span><span class="p">,</span> <span class="s2">"&lt; No &gt;"</span><span class="p">,</span> <span class="k">function</span> <span class="p">(</span><span class="n">v</span><span class="p">)</span> <span class="n">dialog_input</span><span class="p">:</span><span class="n">quit</span><span class="p">()</span> <span class="k">end</span><span class="p">)</span>
    <span class="n">dialog_input</span><span class="p">:</span><span class="n">button_add</span><span class="p">(</span><span class="s2">"yes"</span><span class="p">,</span> <span class="s2">"&lt; Yes &gt;"</span><span class="p">,</span> <span class="k">function</span> <span class="p">(</span><span class="n">v</span><span class="p">)</span> <span class="n">dialog_input</span><span class="p">:</span><span class="n">quit</span><span class="p">()</span> <span class="k">end</span><span class="p">)</span>
    <span class="n">self</span><span class="p">:</span><span class="n">insert</span><span class="p">(</span><span class="n">dialog_input</span><span class="p">,</span> <span class="p">{</span><span class="n">centerx</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="n">centery</span> <span class="o">=</span> <span class="kc">true</span><span class="p">})</span>
<span class="k">end</span>
</code></pre>
</div>

<h3 id="widgets">Widgets</h3>

<table>
  <thead>
    <tr>
      <th>Views</th>
      <th>Dialogs</th>
      <th>Other</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>view</td>
      <td>dialog</td>
      <td>event</td>
    </tr>
    <tr>
      <td>panel</td>
      <td>boxdialog</td>
      <td>action</td>
    </tr>
    <tr>
      <td>label</td>
      <td>textdialog</td>
      <td>canvas</td>
    </tr>
    <tr>
      <td>button</td>
      <td>inputdialog</td>
      <td>curses</td>
    </tr>
    <tr>
      <td>border</td>
      <td>mconfdialog</td>
      <td>program</td>
    </tr>
    <tr>
      <td>window</td>
      <td>choicedialog</td>
      <td>application</td>
    </tr>
    <tr>
      <td>menubar</td>
      <td> </td>
      <td>point</td>
    </tr>
    <tr>
      <td>menuconf</td>
      <td> </td>
      <td>rect</td>
    </tr>
    <tr>
      <td>textedit</td>
      <td> </td>
      <td>object</td>
    </tr>
    <tr>
      <td>textarea</td>
      <td> </td>
      <td> </td>
    </tr>
    <tr>
      <td>statusbar</td>
      <td> </td>
      <td> </td>
    </tr>
    <tr>
      <td>choicebox</td>
      <td> </td>
      <td> </td>
    </tr>
    <tr>
      <td>scrollbar</td>
      <td> </td>
      <td> </td>
    </tr>
    <tr>
      <td>desktop</td>
      <td> </td>
      <td> </td>
    </tr>
  </tbody>
</table>

<h3 id="menu-configuration">Menu configuration</h3>

<p><img src="https://tboox.org/static/img/ltui/menuconf.png" width="70%" /></p>

<h3 id="input-1">Input</h3>

<p><img src="https://tboox.org/static/img/ltui/inputdialog.png" width="70%" /></p>

<h3 id="textarea">Textarea</h3>

<p><img src="https://tboox.org/static/img/ltui/textarea.png" width="70%" /></p>

<h3 id="windows">Windows</h3>

<p><img src="https://tboox.org/static/img/ltui/windows.png" width="70%" /></p>

<h3 id="termux">Termux</h3>

<p><img src="https://tboox.org/static/img/ltui/termux.jpeg" width="50%" /></p>

        </article>
        <hr>

        <!-- baidu ads -->
        

        
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
                    
                    <h2 id="chinese">中文</h2>
                    <ul>
                    
                    <li class="relatedPost">
                        <a href="/cn/2020/11/30/ltui-v2.4/">LTUI v2.4 发布, 一个基于lua的跨平台字符终端UI界面库
                        
                        </a>
                    </li>
                    
                    
                
            
        
            
        
            
            
                
            
        
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
        
            
        
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
        
            </ul>
        

        
        
            
            
            
                
                    
                
                    
                
                    
                
                    
                        
                        <h2 id="similar_posts">Similar Posts</h2>
                        <ul>
                        
                        <li class="relatedPost">
                            <a href="/2021/12/17/xmake-update-v2.6.2/">Xmake v2.6.2 released, Support building Linux kernel driver module
                            
                            </a>
                        </li>
                        
                        
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
            
        
            
        
            
            
            
                
                    
                
                    
                
                    
                
                    
                        
                        <li class="relatedPost">
                            <a href="/2021/12/03/xmake-update-v2.6.1/">xmake v2.6.1 released, Switch to Lua5.4 runtime, Support Rust and C++ mixed compilation
                            
                            </a>
                        </li>
                        
                        
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
            
        
            
        
            
            
            
                
                    
                
                    
                
                    
                
                    
                        
                        <li class="relatedPost">
                            <a href="/2021/10/30/xmake-update-v2.5.9/">xmake v2.5.9 released, Improve C++20 Modules and support Nim, Keil MDK and Unity Build
                            
                            </a>
                        </li>
                        
                        
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
            
        
            
        
            
            
            
                
                    
                
                    
                
                    
                
                    
                        
                        <li class="relatedPost">
                            <a href="/2021/10/08/xmake-update-v2.5.8/">xmake v2.5.8 is released, Support Pascal/Swig program and Lua53 runtime
                            
                            </a>
                        </li>
                        
                        
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
            
        
            
        
            
            
            
                
                    
                
                    
                
                    
                
                    
                        
                        <li class="relatedPost">
                            <a href="/2021/08/29/xmake-update-v2.5.7/">xmake v2.5.7 released, Use lockfile to freeze package dependencies and Vala/Metal language support
                            
                            </a>
                        </li>
                        
                        
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
            
        
            
        
        
            </ul>
        

        <div class="post-recent">
    <div class="pre">

        

        

        
        
        

        

        

        
        
        <p><strong>Prev Post</strong> <a href="/2020/11/24/xmake-update-v2.3.9/">xmake v2.3.9 released, Add independent Xrepo C/C++ package manager</a></p>
        
    </div>

    <div class="nex">

        

        

        
        
        

        

        

        
        
        

        

        

        
        
        

        

        

        
        
        <p><strong>Next Post</strong> <a href="/2021/01/16/xmake-update-v2.5.1/">xmake v2.5.1 released, Support for Apple Silicon and more powerful C/C++ package management</a></p>
        
    </div>
</div>


        <h2 id="comments">Comments</h2>
        






<div id="gitalk-container"></div>
<link rel="stylesheet" href="/css/gitalk.css">
<script src="/js/gitalk.min.js"></script>

<script>
const gitalk = new Gitalk({
  clientID: '73946dc1d9e2276ad0da',
  clientSecret: '12a3cb94361ba3ebc6ecb68cf80d592bfaa8106d',
  repo: 'tboox.github.io',
  owner: 'waruqi',
  admin: ['waruqi'],
  id: location.pathname,      
  language: 'en',
  distractionFreeMode: false  
})

gitalk.render('gitalk-container')
</script>





    </div>
    <button class="anchor"><i class="fa fa-anchor"></i></button>
    <div class="right">
        <div class="wrap">


            <!-- codefund ads -->
            

            <!-- Content -->
            <div class="side content">
                <div>
                    Content
                </div>
                <ul id="content-side" class="content-ul">
                    <li><a href="#chinese">中文</a></li>
                    <li><a href="#similar_posts">Similar Posts</a></li>
                    <li><a href="#comments">Comments</a></li>
                </ul>
            </div>

            <!-- baidu ads -->
            

            <br>
            <div class="side">
                <div>
                    <i class="fa fa-external-link"></i>
                    Links
                </div>
                <ul class="content-ul">
                  <li><a href="http://github.com/waruqi/tbox">tbox</a></li>
                  <li><a href="http://www.xmake.io">xmake</a></li>
                  <li><a href="https://github.com/waruqi">github</a></li>
                </ul>
            </div> 

            <!-- google ads -->
            

            <!-- baidu ads -->
            

            <!-- chitika ads -->
            
        </div>
    </div>

    <!-- baidu ads -->
    
</div>
<script>
/**
 * target _blank
 */
(function() {
    var aTags = document.querySelectorAll('article a:not([id])')
    for (var i = 0; i < aTags.length; i++) {
        aTags[i].setAttribute('target', '_blank')
    }
}());
</script>
<script src="/js/pageContent.js " charset="utf-8"></script>



    <footer class="site-footer">
    <div class="wrapper">
        <p class="description">
             Copyright (c) 2016-2020 tboox.org 
        </p>
        <p class="contact">
            
            <a href="https://github.com/waruqi" title="GitHub"><i class="fa fa-github" aria-hidden="true"></i></a> 
             
            
            <a href="mailto:waruqi@gmail.com" title="email"><i class="fa fa-envelope-o" aria-hidden="true"></i></a> 
            
            
            <a href="https://twitter.com/waruqi" title="Twitter"><i class="fa fa-twitter" aria-hidden="true"></i></a> 
            
            <a href="/feed.xml" title="feed"><i class="fa fa-feed" aria-hidden="true"></i></a> 
        </p>
        <p class="power">
            <span>
                Site powered by <a href="https://jekyllrb.com/">Jekyll</a> & <a href="https://github.com/Gaohaoyang">HyG</a> & <a href="https://pages.github.com/">Github Pages</a>.
            </span>
        </p>
    </div>
</footer>

    <div class="back-to-top">
    <a href="#top" class="scroll">
        <i class="fa fa-arrow-up" aria-hidden="true"></i>
    </a>
</div>

    <script src=" /js/main.js " charset="utf-8"></script>
    <script src=" /js/scroll.min.js " charset="utf-8"></script>
  </body>

</html>
